@echo off
title Check Upload Result
color 0A

echo.
echo  ===============================================
echo        Verify Gitee Upload Result
echo  ===============================================
echo.

:: Check local files
echo 📂 Checking local files...
echo.

:: Check key PWA files
set "key_files=手机PWA直接打开版.html manifest.json service-worker.js PWA快速使用指南.md 一键手机版.bat"

echo Key files to verify:
for %%f in (%key_files%) do (
    if exist "%%f" (
        echo   ✅ %%f - Found
    ) else (
        echo   ❌ %%f - Missing
    )
)

echo.
echo 📦 Package directory check:
if exist "Gitee_Upload_*" (
    echo   ✅ Package directory exists
    echo   Contents:
    dir /b Gitee_Upload_* 2>nul
) else (
    echo   ⚠️  Package directory not found
)

echo.
echo 🔗 Remote repository:
echo   Target: https://gitee.com/k1565566/gitee_-deploy.md
echo.

:: Network check
echo 🌐 Network test:
ping gitee.com -n 1 >nul 2>nul
if %errorlevel% equ 0 (
    echo   ✅ Gitee is accessible
    echo.
    echo 📱 Mobile access URL:
    echo   https://gitee.com/k1565566/gitee_-deploy.md/手机PWA直接打开版.html
) else (
    echo   ⚠️  Network issue detected
)

echo.
echo 🔍 Manual verification steps:
echo 1. Open browser to: https://gitee.com/k1565566/gitee_-deploy.md
echo 2. Check if files are uploaded to the repository
echo 3. Test mobile access to HTML file
echo 4. Add to home screen and test offline mode
echo.
echo 🎯 Expected uploaded files:
echo - 手机PWA直接打开版.html (main PWA file)
echo - manifest.json (PWA config)
echo - service-worker.js (PWA service)
echo - PWA快速使用指南.md (user guide)
echo - 一键手机版.bat (launcher script)
echo.
echo Press any key to continue...
pause >nul